
// 引入仓库
import store from "@/store/modules/user";
export default (Vue) => {
    Vue.directive('has', (element, { value }) => {
        const buttons = store.state.buttons;
        if (!buttons.includes(value)) {
            element.remove();
        }
    });
};